﻿using System;
using System.ComponentModel.Design;
using System.Text.RegularExpressions;
using CQIE.TES.DAL;
using CQIE.TES.Model;
using CQIE.TES.Service;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;

namespace Test
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            TeacherDAL dal = new TeacherDAL();
            int count;
            var data = dal.GetTeachersPage(0, 2, "",out count);
            int s = 3;
        }

        [TestMethod]
        public void Test2()
        {
            CourseDAL dal = new CourseDAL();
            int count;
            dal.GetClassHaveNoCourse(1, 1);
            int s= 3;
        }

        [TestMethod]
        public void Test3()
        {
            StudentDAL dal = new StudentDAL();
            int count;
            var list =  dal.GetStudentsPage(1,3,"",out count);
            int i = 3;
        }

        [TestMethod]
        public void Test4()
        {
            QuestionDAL dal = new QuestionDAL();
            dal.GetAllDemo();
        }

        [TestMethod]
        public void t5()
        {
//            CQIE.TES.Model.Test tt = new CQIE.TES.Model.Test();
//            tt.test();
        }

        [TestMethod]
        public void test6()
        {
            Class_DAL dal = new Class_DAL();
            dal.DeleteClass_(1);
            int i = 3;
        }
        [TestMethod]
        public void test7()
        {
            StudyYearDAL dal = new StudyYearDAL();
            dal.GetStudyYearsInfo();
            int i = 3;
        }

        [TestMethod]
        public void test8()
        {
            StudentDAL dal = new StudentDAL();
            dal.FindByID(1);
            int i = 3;
        }

        [TestMethod]
        public void test9()
        {
            Class_DAL dal = new Class_DAL();
            dal.FindClassByStundentID(1);
            int i = 3;
        }

        [TestMethod]
        public void test10()
        {
            QuestionDAL dal = new QuestionDAL();
            int i = 3;
        }

        [TestMethod]
        public void test11()
        {
            EvaluaHeightDAL dal = new EvaluaHeightDAL();
            int a = 1;
            var list = dal.GetAllEva(0, 3,out a);
            int e = 3;
        }

        [TestMethod]
        public void test12()
        {
            TeacherDAL teacherDAL = new TeacherDAL();
            teacherDAL.ResetPassWord(2);
            int i = 3;
        }

        [TestMethod]
        public void test13()
        {
            
        }
    }

}
